<!DOCTYPE HTML>
<!--//
This web page has been developed by Wani.
 - me@wani.kr
 - http://wani.kr
-->
<html lang="ko">
<head>
<title><?php echo $title?></title>

<meta charset="UTF-8" />
<meta property="og:title" content="<?php echo $title?>"/>
<meta property="og:description" content="<?php echo $description?>"/>
<meta property="og:image" content="http://wani.kr/library/img/icon.png"/>

<link rel="shortcut icon" href="<?php echo $library?>/img/icon.png" type="image/x-icon" />

<!--[if lt IE 9]>
<script src="<?php echo $library ?>/js/html5shiv.js"></script>
<![endif]-->

<script type="text/javascript">
var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-35736735-1']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();
</script>

<link rel="stylesheet" type="text/css" href="<?php echo $library?>/css/init.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $library?>/css/prettify.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $library?>/grp/blog/css/home.css" />

</head>
<body>
<header>
	<h1><a data-filter=".item">Wani's Blog</a></h1>
	<nav>
		<ul id="filters">
<?php foreach ($category as $v) : ?>
			<li><a data-filter=".category<?php echo $v['idx']?>"><?php echo $v['name']?></a></li>
<?php endforeach; ?>
		</ul>
	</nav>
	<form>
		
	</form>
</header>
<section>
<?php foreach ($rows as $item) : ?>
	<div class="item category<?php echo $item['category_idx']?>">
		<h2><?php echo $item['subject']?></h2>
		<div class="contents"><?php echo $item['contents']?></div>
		<div class="time"><time datetime="<?php echo date("Y-m-d\TH:m:s", $item['reg_date']) ?>"><?php echo date("Y-m-d H:m:s", $item['reg_date']) ?></time></div>
	</div>
<?php endforeach; ?>
</section>

<nav id="pagination"><a href="./?page=<?php echo $next ?>"></a></nav>

<script src="<?php echo $library?>/js/jquery-1.9.0.min.js"></script>
<script src="<?php echo $library?>/grp/blog/js/jquery.isotope.min.js"></script>
<script src="<?php echo $library?>/grp/blog/js/jquery.infinitescroll.js"></script>
<script src="<?php echo $library?>/js/prettify.min.js"></script>
<script src="<?php echo $library?>/grp/blog/js/home.js"></script>
</body>
</html>